namespace nu.Model
{
    using System.Collections.Generic;

    public class DraftPackageState : PackageStateBase
    {
        public DraftPackageState(Package package) : base(package) { }

        public override string Name
        {
            get { return "Draft"; }
        }

        public override string Hash
        {
            get
            {
                throw new HashUnavailableException(this);
            }
            protected set
            {
                throw new HashUnavailableException(this);
            }
        }

        public override PackageItem AddFileItem(string filePath, List<PackageItem> items)
        {
            PackageItem item = new PackageItem(filePath);
            items.Add(item);
            return item;
        }
    }
}